<template>
    <div class="main-container">
        <div style="background-color: #fff; height:100%">
            <a-tabs   :lazy-load="true" type="card" @change="tabsChange" justify>
                <a-tab-pane title="生产单补贴" key="1">
                    <div style="height: 100%;">
                        <DonationList3></DonationList3>
                    </div>
                </a-tab-pane>
            </a-tabs>
        </div>

    </div>
</template>

<script lang="ts">
    import {defineComponent, reactive, ref, onMounted} from 'vue'
    import emitter from '@/hooks/useEventBus'
    import DonationList3 from '@/components/piecemoney/DonationRecord/DonationList3.vue'


    export default defineComponent({
        name: 'DonationRecord',
        setup() {

            const pageData = reactive({
                tableIndex: "1"
            })

            const tabsChange = (e: string | number) => {
                emitter.emit('window-change')
                if (e === '1') {
                    emitter.emit('DonationList')
                }
            }
            return {
                pageData,
                tabsChange
            }
        },
        components:{
            DonationList3
        }
    })
</script>
<style scoped>
    .main-container {
        height: 100%;
    }
</style>